package com.wjh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wjh.mapper.ProducerecordMapper;
import com.wjh.pojo.Producerecord;
import com.wjh.service.ProducerecordService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * (Producerecord)表服务实现类
 *
 * @author makejava
 * @since 2023-12-20 14:17:57
 */
@Service("producerecordService")
public class ProducerecordServiceImpl extends ServiceImpl<ProducerecordMapper, Producerecord> implements ProducerecordService {

    @Override
    public List<Producerecord> queryById(Integer basemachineid) {
        LambdaQueryWrapper<Producerecord> queryWrapper =
                new LambdaQueryWrapper<>();
        queryWrapper.eq(Producerecord::getProducemachineid,basemachineid);
        List<Producerecord> list = list(queryWrapper);
        return list;
    }
}
